import React from 'react';
import { Typography } from 'antd';
import { useTranslation } from 'react-i18next';
import GopherProps from '../objects/internal/GopherProps';
import './HomePageToast.css';

export default function HomePageToast(props: GopherProps) {
	const {t} = useTranslation();

	return (
		<div className={'home-page-toast-wrapper'}>
			<Typography>{t('text-home-page-toast', {name: props.gopher.getCurrentUsername()})}</Typography>
		</div>
	);
}
